package com.example.demo.tester.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BookController {
	
	@RequestMapping("/test/book/list")
	@ResponseBody
	public String List() {
		return "demo";
	}
	
	@RequestMapping("/test/book/add")	
	@ResponseBody
	public String Add(@RequestParam(value="name") String name) {
		return "test "+name+" ok";
	}

}
